package cn.zysuyuan.user.mapper;

import cn.zysuyuan.user.entity.User;
import cn.zysuyuan.user.entity.UserUpdate;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2019-11-25 16:34
 */
public interface UserMapper {

    int insertUser(User user);
    User selectUser(User user);
    int updateUser(UserUpdate userUpdate);
    int queryUserName(String username);
    int queryNickName(String nickname);
    List<User> selectAllUser(Map<String,Object> map);
    int resetPassword(UserUpdate userUpdate);
    int deleteUser(String id);

    User findById(String id);
}
